package day5.chongwu;

import day5.chongwu.bird.KingParrot;
import day5.chongwu.bird.Parrot;

/**
 * @author oldliu
 * @since 1.0
 */
public class DoctorTest {
    public static void main(String[] args) {
        Integer a = new Integer (3) ;
        Integer b = new Integer(3) ;
        Integer a1=3;
        Integer b1=3;
        System.out.println(a1==b1);
        System. out.println(a==b);
        Dog d=new Dog("大黄",33,33,"田园犬");
        Parrot p=new Parrot("翠花",99);
        KingParrot kd=new KingParrot("金刚翠花",24);

        d.show();
        p.show();
        kd.show();
        PetDoctor pd=new PetDoctor("老吴");
        pd.cure(d);
        pd.cure(p);
        pd.cure(kd);
        System.out.println("治疗后。。。。");
        d.show();
        p.show();
        kd.show();

        System.out.println(">>>>>>>>>>>");
        Tiger t=new Tiger("小美丽");
        pd.cure(t);
    }
}
